package com.jcxh.sg_exam.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @Author 鹏少
 * @Date 2024/8/23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "AddUserDto", description = "新增用户信息")
public class AddUserDto {

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名", required = true)
    @NotBlank(message = "姓名不能为空")
    private String name;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别", required = true)
    @NotBlank(message = "性别不能为空")
    private String sex;
    /**
     * 工作单位
     */
    @ApiModelProperty(value = "工作单位", required = true)
    @NotBlank(message = "工作单位不能为空")
    private String workUnit;

    /**
     * 身份证号
     */
    @ApiModelProperty(value = "身份证号", required = true)
    @NotBlank(message = "身份证号不能为空")
    private String idNumber;

    /**
     * 电话号码
     */
    @ApiModelProperty(value = "电话号码", required = true)
    @NotBlank(message = "电话号码不能为空")
    private String phone;
}